/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frontera;

import java.awt.Color;
import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;


/**
 *
 * @author Stiv
 */
public class DiseñoColumna extends DefaultTableCellRenderer {
    
    
    Color backColor = Color.cyan;  
  
public DiseñoColumna(Color backColor ) {  
 
    this.backColor = backColor;  
}  
  
    @Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,int row,int column) {  
  
    
this.setBackground( backColor );  


super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
   
return this;  
}  
    
}
